<%@page contentType="text/html;charset=utf-8" pageEncoding="UTF-8"%>
<%@page  language="java" import="org.ipo.mm.web.util.*, java.util.*,org.ipo.mm.ejb.entities.Representative"%>
<%@taglib prefix="h" uri="http://struts.apache.org/tags-html"%>
<script type="text/javascript">	
//Autocomplete  var
<%
if(request.getAttribute("allReps")!=null){
    List<Representative> allReps = (List<Representative>)request.getAttribute("allReps");%>
var allReps =[<%for (Iterator<Representative> it = allReps.iterator(); it.hasNext();) {Representative rep = it.next();%>{ firstName:"<%=rep.getFirstName()%>" ,lastName: "<%=rep.getLastName()%>", inst: "<%=rep.getInstitution().getName().replace( "'","\'" ).replace( "\"","\\\"" )%>"}<%if (it.hasNext()){%>,<%}%><%}%>];
<%}%>
 </script>	